package com.accenture.adf.newcodington.module10.sample;

/**
 * Topic: Inheritance
 * 
 * Instructions:
 * 
 * 	The Theater class is to be created and updated in the participant folder by the 
 * 	participant during Show It tasks for the module.
 * 	This class is a solution for the task.
 * 	It acquires properties of a Building through inheritance 
 */
public class Theater extends Building {
	
	/**
	 * Overriding method from the Building class
	 * @param size
	 */
	public void showArea(int size) {
		System.out.println("Theater area : "+size*12);		
	}
	
	
	//Override the showEvents method to be used during Non-Access Modifiers: abstract See It
	public void showEvents() {
		System.out.println("Events ready to be hosted !!");
	}
	
/*	//Override the showEvents method to be used during Composition See It
		public void showEvents() {
			Event e = getEvents();
			
			System.out.println("----------------- EVENT DETAILS -----------------");
			System.out.println("Event name :"+e.getEventName());
			System.out.println("Event Type :"+e.getEventType());
			System.out.println("Event Description :"+e.getDescription());
			System.out.println("Event Duration :"+e.getDuration());
			System.out.println("Event Ticket Price :"+e.getTicketPrice());
			System.out.println("-------------------------------------------------");

		}*/
}
